<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>
   		<f:viewParam name="bulletinId" value="#{bulletinHome3.id}"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="editForm">         
			<p:panel id="panel" header="Form" style="margin-bottom:10px;">
		       <p:messages id="messages" closable="true"><p:autoUpdate/></p:messages>
		        
		        <h:panelGrid columns="2" cellpadding="5">
					
				</h:panelGrid>
			</p:panel>
			
			<p:commandButton action="#{reIndexBean.reIndexArticle()}" value="重建文章索引" ajax="false" />		
			<p:commandButton action="#{reIndexBean.reIndexBulletin()}" value="重建公告索引" ajax="false" />
			<p:commandButton action="#{reIndexBean.reIndexServiceSupplier()}" value="重建中介索引" ajax="false" />
			<p:commandButton action="#{reIndexBean.reIndexAgentService()}" value="重建服务事项索引" ajax="false"></p:commandButton>
			<p:commandButton action="#{reIndexBean.reIndexAll()}" value="重建索引" ajax="false" />
			<p:commandButton action="#{imageThumbnailService.generate()}" value="为所有图片创建缩略图" ajax="false"></p:commandButton>
			<p:commandButton action="#{bulletinService.cleanBulletin()}" value="group绑定bulletin数据清洗" ajax="false"></p:commandButton>
			<p:commandButton action="#{bulletinWinnerUpdateTimer.check()}" value="为bulletin增加中选中介id" ajax="false"></p:commandButton>	
			
			<br/>
			<p:commandButton action="#{cleanAttachmentService.cleaAttachment()}" value="清洗附件" ajax="true"></p:commandButton>
				
			<br/>
			<p:commandButton action="#{assessRecordProcessGenerator.check()}" value="生成中介上报审核流程" ajax="true" rendered="false"></p:commandButton>
				
			<br/>
			<p:commandButton action="#{timerCancelService.postConstruct()}" value="test Timer"></p:commandButton>
			<p:commandButton action="#{timerCancelService.cancelAllTimers()}" value="Cancel Timers"></p:commandButton>
			
			<p:panel header="主营业务embedded变实体，数据清洗用" style="margin-top: 30px;">
				<p:commandButton action="#{businessToMainBusinessConverter.convert()}" value="清洗"></p:commandButton>
			</p:panel>
			<p:commandButton action="#{assessRecordProcessGenerator.check()}" value="生成中介上报审核流程" ajax="true" rendered="false"></p:commandButton>
			
			新的选取时间：<p:calendar value="#{bulletinRepairBean.newChooseTime}" pattern="yyyy-MM-dd HH:mm:ss" ></p:calendar>
			<p:commandButton action="#{bulletinRepairBean.triggerTimer(bulletinHome3.id)}" value="重新选取"></p:commandButton>
			<p:commandButton action="#{bulletinService.test()}" value="测试同步" immediate="true"></p:commandButton>
		</h:form>
      
      	<ui:remove>
			<p:graphicImage value="#{bpmHome.getProcessDiagramImage()}" style="width: 100%">
			    <f:param name="processInstanceId" value="15014" />
			</p:graphicImage>
		</ui:remove>
   	</ui:define>
</ui:composition>
 